home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000406_news@columbia.edu _Fri Jul 14 00:10:35 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
3KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id AAA16315
for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 14 Jul 2000 00:10:34 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA01194
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 14 Jul 2000 00:10:34 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id AAA07435
for kermit.misc@watsun.cc.columbia.edu; Fri, 14 Jul 2000 00:07:01 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: Mark Sapiro <msapiro@value.net>
Subject: Suggestion for Kermit script language
Date: Thu, 13 Jul 2000 20:59:49 -0700
Organization: Not Very Much
Message-ID: <396E9035.C028E5FE@value.net>
To: kermit.misc@columbia.edu
Often in a macro or script one wishes to save the current settings of
certain parameters before changing them so that they can be restored
later. When the setting is reflected in a variable, this can be done,
but it is a bit awkward. Some settings are not reflected in variables,
and saving a prior setting can't be done.
Consider the following macro which I actually use to connect to a
library cataloging and circulation system in Marin County, Calif.
marinlib = local termtyp,-
assign termtyp \v(terminal),-
set terminal type vt100,-
set telopt kermit refused refused,-
telnet marinet.lib.ca.us,-
set terminal type \m(termtyp),-
set telopt kermit requested requested
(the "set telopt kermit refused refused" is required because the server
responds to "WILL kermit" and "DO kermit" with "WONT UNKNOWN" and "DONT
UNKNOWN" and things deterioriate from there.)
Note that I am only guessing that "set telopt kermit requested
requested" the proper state to restore to.
I would like to see "save" and "restore" options added to the set
command to save the current state of the affected parameter on a stack
for that parameter and restore the parameter from its stack
respectively. Restoring from an empty stack would restore the default
value for that parameter.
With this feature, the above macro could become:
Marinlib = set /save terminal type vt100,-
set /save telopt kermit refused refused,-
telnet marinet.lib.ca.us,-
set /restore terminal type,-
set /restore telopt kermit
The above syntax is for example only. Any syntax that works would be
acceptable.
--
Mark Sapiro <msapiro@value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan